﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;

namespace EMS.Calendar.Models {
    public class CalendarPartRecord : ContentPartRecord {
        public virtual string EventOccurrence { get; set; } // EventOccurrenceType is string in database
        [Required]
        public virtual DateTime? StartDate { get; set; }
        public virtual DateTime? StartTime { get; set; }
        public virtual DateTime? EndDate { get; set; }
        public virtual DateTime? EndTime { get; set; }
        public virtual bool IsAllDayEvent { get; set; }
        public virtual string Pattern { get; set; } // PatternType is string in database
        public virtual int PeriodSpan { get; set; }
        public virtual int DayOfPeriod { get; set; }
        public virtual string DayInstance { get; set; } // DayInstanceType is string in database
        public virtual string DayNames { get; set; } // List<DayNameType> // String in database
        public virtual string MonthName { get; set; } // MonthNameType is string in database
        public virtual string RecurrenceEnd { get; set; } // RecurrenceEndType is string in database
        public virtual int NumberOccurrences { get; set; }
    }
}